package com.visionet.school.app.web.repository.tclass;

import com.visionet.school.app.web.entity.tclass.ClassNotice;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by dzd on 2017/3/2.
 */

@Repository
public interface ClassNoticeRepository extends PagingAndSortingRepository<ClassNotice,String>,JpaSpecificationExecutor<ClassNotice> {

    @Query("from ClassNotice as cn where cn.id = ?1 and cn.isDeleted = 0 ")
    public ClassNotice findClassById(String id);


}
